﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_Nguoiquanly.ascx.cs"
    Inherits="Manager_Nguoidung_Controls_UC_Nguoiquanly" %>
<div id="TitleRight">
    <div id="Breadcrumb">
        <ul>
            <li><a href="../Trangchu/">Manager</a></li>
            <li><a href ="Nguoidung.aspx">Người dùng</a></li>
            <li>Quản lý</li>
        </ul>
    </div>
</div>
<div class="nav_tabs">
    <ul>
        <li>
            <div class="Selected">
                <a href="Nguoidung.aspx?action=quanly">Tài khoản người quản lý</a></div>
        </li>
        <li>
            <div class="Unselected">
                <a href="Themquanly.aspx">Thêm quản lý mới</a></div>
        </li>
        
    </ul>
</div>
<div class="Clear">
    <br />
</div>
<div class="description">
    <p>
        Thông tin chung</p>
</div>
<div class="Content1Right-main">
<div class="border_wrapper">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td width="50%">
                    <label>
                        Tên đăng nhập</label>
                    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                </td>
                <td>
                    <label>
                        Email</label>
                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <label>
                        Họ tên</label>
                    <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox>
                </td>
                <td>
                    <label>
                        Địa chỉ</label>
                    <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Button ID="btnTimkiem" runat="server" Text="Tìm kiếm" Height="30px" 
                        Width="100px" onclick="btnTimkiem_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
    <asp:GridView ID="gvQuanly" runat="server" AutoGenerateColumns="False" CellPadding="4"
        ForeColor="#333333" onrowcommand="gvQuanly_RowCommand" AllowPaging="True" 
        onpageindexchanging="gvQuanly_PageIndexChanging" PageSize="1">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:TemplateField HeaderText="Tên đăng nhập">
                <ItemTemplate>
                    <asp:Label ID="lblUserName" runat="server" Text='<%#Eval("UserName") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="150px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Họ tên">
                <ItemTemplate>
                    <asp:Label ID="lblFullName" runat="server" Text='<%#Eval("FullName") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="190px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Email">
                <ItemTemplate>
                    <asp:Label ID="lblMail" runat="server" Text='<%#Eval("Mail") %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="200px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Trạng thái">
                <ItemTemplate>
                    <asp:Label ID="lblTrangthai" runat="server" Text='<%#Trangthai(bool.Parse(Eval("Status").ToString())) %>'></asp:Label>
                </ItemTemplate>
                <ControlStyle Width="100px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Hành động">
                <ItemTemplate>
                    <%--<a href='Chitietnguoidung.aspx?quanly=<%#Eval("Id") %>'>Chi tiết</a>--%>
                    <asp:Button ID="btnChitiet" runat="server" Text="Chi tiết" style="width:50px; height:30px"  CommandArgument='<%#Eval("Id") %>' CommandName="Chitiet" />
                    <asp:Button ID="btnXoa" runat="server" Text="Xóa" style="width:40px; height:30px" CommandName="Xoa" CommandArgument='<%#Eval("Id") %>'  />
                </ItemTemplate>
                <ControlStyle Width="100px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#0263A1" BorderColor="Black" BorderStyle="Double" BorderWidth="1px"
            Font-Bold="True" Font-Size="Medium" ForeColor="White" Height="40px" />
        <PagerStyle ForeColor="#003366" HorizontalAlign="Center" CssClass="paging" 
            Height="20px" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
</div>
